import { IMessageBase } from "../../Framework/MQ/IMessageBase";
import { MessageManager } from "../../Framework/MQ/MessageManager";
import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
import { SeqByteHelper } from "../Public/SeqByteHelper";
type int = number;
//class SFightRecord
    
    export  class SFightRecord extends IMessageBase
    {
        constructor(arg1: Boolean=false)
        {
            
            super();if (arg1) 
            {
                MessageManager.instance().regist(this);
            }
            return;
        }

        public /* override */ getType(): int
        {
            return this._type;
        }

        public /* override */ clone(): IMessageBase
        {
            return new SFightRecord();
        }

        public /* override */ __write(arg1: SerializeStream): void
        {
            arg1.writeInt(this.copyType);
            arg1.writeString(this.recordId);
            arg1.writeInt(this.count);
            arg1.writeInt(this.mapId);
            SeqByteHelper.write(arg1, this.bytes);
            return;
        }

        public /* override */ __read(arg1: SerializeStream): void
        {
            this.copyType = arg1.readInt();
            this.recordId = arg1.readString();
            this.count = arg1.readInt();
            this.mapId = arg1.readInt();
            this.bytes = SeqByteHelper.read(arg1);
            return;
        }

        public /* const */_type: int=32;

        public /* var */copyType: int;

        public /* var */recordId: string;

        public /* var */count: int;

        public /* var */mapId: int;

        public /* var */bytes: Array<any>;

        public static /* var */_regist: SFightRecord;
    }

            SFightRecord._regist = new SFightRecord(true);
        